package com.graduation.fq.student.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.graduation.fq.student.R;

/**
 * @author jifang
 * @version 2016/5/23.
 */
public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.main_choose_bt).setOnClickListener(
                new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Intent intent = new Intent(MainActivity.this, ChooseActivity.class);
                        startActivity(intent);
                    }
                }
        );

        findViewById(R.id.main_query_and_analyse_bt).setOnClickListener(
                new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        startActivity(new Intent(MainActivity.this, ScoreQueryActivity.class));
                    }
                }
        );
    }
}
